/**
 * 
 */
package wpmp.security.mgr.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import wpmp.security.mgr.base.BaseEntity;

/**
 * @author Wayne.Wang<5waynewang@gmail.com>
 * @since 11:30:48 PM Mar 17, 2013
 */
@Entity
@Table(name = "sys_role_resource_rela")
public class RoleResourceRela extends BaseEntity {

	private static final long serialVersionUID = 6372619593207257222L;

	private Long id;
	private Long roleId;
	private Long resourceId;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

}
